.class Lcom/example/m6wmr/LoginActivity$15;
.super Ljava/lang/Object;
.source "LoginActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/LoginActivity;->getview()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/LoginActivity;

.field private final synthetic val$et_phone_phone:Landroid/widget/EditText;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/LoginActivity;Landroid/widget/EditText;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    iput-object p2, p0, Lcom/example/m6wmr/LoginActivity$15;->val$et_phone_phone:Landroid/widget/EditText;

    .line 634
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/LoginActivity$15;)Lcom/example/m6wmr/LoginActivity;
    .locals 1

    .prologue
    .line 634
    iget-object v0, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    return-object v0
.end method

.method private getPhoneAuthCode()V
    .locals 2

    .prologue
    .line 677
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/m6wmr/LoginActivity$15$1;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/LoginActivity$15$1;-><init>(Lcom/example/m6wmr/LoginActivity$15;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 702
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 704
    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    const/4 v7, 0x0

    .line 639
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v4, p0, Lcom/example/m6wmr/LoginActivity$15;->val$et_phone_phone:Landroid/widget/EditText;

    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v4

    invoke-interface {v4}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    const-string v5, "%"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, " "

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/example/m6wmr/LoginActivity;->access$23(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;)V

    .line 641
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->phone_phone:Ljava/lang/String;
    invoke-static {v3}, Lcom/example/m6wmr/LoginActivity;->access$24(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    .line 643
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->phone_phone:Ljava/lang/String;
    invoke-static {v3}, Lcom/example/m6wmr/LoginActivity;->access$24(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v2

    .line 644
    .local v2, "value":Ljava/lang/String;
    const-string v3, "^((1[0-9][0-9]))\\d{8}$"

    invoke-static {v3}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v1

    .line 646
    .local v1, "p":Ljava/util/regex/Pattern;
    invoke-virtual {v1, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 648
    .local v0, "ms":Ljava/util/regex/Matcher;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v3

    if-nez v3, :cond_0

    .line 650
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6wmr/LoginActivity;->access$4(Lcom/example/m6wmr/LoginActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u624b\u673a\u53f7\u7801\u6709\u8bef"

    invoke-static {v3, v4, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 672
    .end local v0    # "ms":Ljava/util/regex/Matcher;
    .end local v1    # "p":Ljava/util/regex/Pattern;
    .end local v2    # "value":Ljava/lang/String;
    :goto_0
    return-void

    .line 655
    .restart local v0    # "ms":Ljava/util/regex/Matcher;
    .restart local v1    # "p":Ljava/util/regex/Pattern;
    .restart local v2    # "value":Ljava/lang/String;
    :cond_0
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v3, v3, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    iput-boolean v7, v3, Lmyapp/MyApp;->regcode:Z

    .line 656
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->ll_phonetime:Landroid/widget/LinearLayout;
    invoke-static {v3}, Lcom/example/m6wmr/LoginActivity;->access$3(Lcom/example/m6wmr/LoginActivity;)Landroid/widget/LinearLayout;

    move-result-object v3

    iget-object v4, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->mcontext:Landroid/content/Context;
    invoke-static {v4}, Lcom/example/m6wmr/LoginActivity;->access$4(Lcom/example/m6wmr/LoginActivity;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f020140

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 658
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->handler:Landroid/os/Handler;
    invoke-static {v3}, Lcom/example/m6wmr/LoginActivity;->access$7(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v3

    const/16 v4, 0xd

    invoke-virtual {v3, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 660
    invoke-direct {p0}, Lcom/example/m6wmr/LoginActivity$15;->getPhoneAuthCode()V

    .line 662
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->ll_phonetime:Landroid/widget/LinearLayout;
    invoke-static {v3}, Lcom/example/m6wmr/LoginActivity;->access$3(Lcom/example/m6wmr/LoginActivity;)Landroid/widget/LinearLayout;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/LinearLayout;->setClickable(Z)V

    goto :goto_0

    .line 668
    .end local v0    # "ms":Ljava/util/regex/Matcher;
    .end local v1    # "p":Ljava/util/regex/Pattern;
    .end local v2    # "value":Ljava/lang/String;
    :cond_1
    iget-object v3, p0, Lcom/example/m6wmr/LoginActivity$15;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6wmr/LoginActivity;->access$4(Lcom/example/m6wmr/LoginActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u624b\u673a\u53f7\u7801\u4e3a\u7a7a"

    invoke-static {v3, v4, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method
